package com.hxexp.weixin.hpe.api.ordersubmit.model;

import java.util.List;

import com.hxexp.weixin.model.CommonResult;

/**
 * 生成订单返回结果
 *
 * @author li.jiang
 *
 */
public final class OrderSubmitResultBean extends CommonResult {

    private static final long serialVersionUID = -2518060454589189122L;
    /**
     * 订单号
     */
    private String orderId;
    /**
     * 订单编号
     */
    private String orderpnr;
    /**
     * 发车日期
     */
    private String leaveDate;
    /**
     * 发车时间
     */
    private String leaveTime;
    /**
     * 出发站名称
     */
    private String startStationName;
    /**
     * 到达站名称
     */
    private String arriveStationName;
    /**
     * 车型名称
     */
    private String busTypeName;
    /**
     * 车次名称
     */
    private String regBusNo;
    /**
     * 加班标志
     */
    private String extraFlag;
    /**
     * 班次类型
     */
    private String schType;
    /**
     * 订单结果列表
     */
    private List<OrderSubmitBean> orderTickets;
    /**
     * 成人票数量
     */
    private String fullTicketNum;
    /**
     * 半价票数量
     */
    private String halfTicketNum;
    /**
     * 免票数量
     */
    private String freeTicketNum;

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getLeaveDate() {
        return leaveDate;
    }

    public void setLeaveDate(String leaveDate) {
        this.leaveDate = leaveDate;
    }

    public String getLeaveTime() {
        return leaveTime;
    }

    public void setLeaveTime(String leaveTime) {
        this.leaveTime = leaveTime;
    }

    public String getStartStationName() {
        return startStationName;
    }

    public void setStartStationName(String startStationName) {
        this.startStationName = startStationName;
    }

    public String getArriveStationName() {
        return arriveStationName;
    }

    public void setArriveStationName(String arriveStationName) {
        this.arriveStationName = arriveStationName;
    }

    public String getBusTypeName() {
        return busTypeName;
    }

    public void setBusTypeName(String busTypeName) {
        this.busTypeName = busTypeName;
    }

    public String getRegBusNo() {
        return regBusNo;
    }

    public void setRegBusNo(String regBusNo) {
        this.regBusNo = regBusNo;
    }

    public String getExtraFlag() {
        return extraFlag;
    }

    public void setExtraFlag(String extraFlag) {
        this.extraFlag = extraFlag;
    }

    public String getSchType() {
        return schType;
    }

    public void setSchType(String schType) {
        this.schType = schType;
    }

    public List<OrderSubmitBean> getOrderTickets() {
        return orderTickets;
    }

    public void setOrderTickets(List<OrderSubmitBean> orderTickets) {
        this.orderTickets = orderTickets;
    }

    public String getFullTicketNum() {
        return fullTicketNum;
    }

    public void setFullTicketNum(String fullTicketNum) {
        this.fullTicketNum = fullTicketNum;
    }

    public String getHalfTicketNum() {
        return halfTicketNum;
    }

    public void setHalfTicketNum(String halfTicketNum) {
        this.halfTicketNum = halfTicketNum;
    }

    public String getFreeTicketNum() {
        return freeTicketNum;
    }

    public void setFreeTicketNum(String freeTicketNum) {
        this.freeTicketNum = freeTicketNum;
    }

    public String getOrderpnr() {
        return orderpnr;
    }

    public void setOrderpnr(String orderpnr) {
        this.orderpnr = orderpnr;
    }

    @Override
    public String toString() {
        return String
                .format("OrderSubmitResultBean [orderId=%s, orderpnr=%s, leaveDate=%s, leaveTime=%s, startStationName=%s, arriveStationName=%s, busTypeName=%s, regBusNo=%s, extraFlag=%s, schType=%s, orderTickets=%s, fullTicketNum=%s, halfTicketNum=%s, freeTicketNum=%s,errcode=%d,errmsg=%s]",
                        orderId, orderpnr, leaveDate, leaveTime, startStationName, arriveStationName, busTypeName, regBusNo, extraFlag, schType,
                        orderTickets, fullTicketNum, halfTicketNum, freeTicketNum, this.getErrcode(), this.getErrmsg());
    }



}
